import Http from '../util/http'

export default {
  getTopic(params) {
    return Http.get('/topics', { limit: 10, ...params });
  },

  getArticle(id) {
    return Http.get('/topic/' + id);
  }
};